package malohlava.apps.mendeley
{
  import malohlava.apps.mendeley._
  import malohlava.apps.mendeley.scribe.builder.api._;
  
  import org.scribe.oauth._
  import org.scribe.builder._
  import org.scribe.model._

  class MendeleyRelatedWorkGenerator {

    /*
    def getRW() : String[] = {
    }

    def transformRW(rws : String[]) : String[] = {
    }

    def generateRW : String[] = {
      val rw = getRW()

      transformRW(rw)
    }*/
  }

  object MendeleyRWG extends MendeleyRelatedWorkGenerator {

    val AUTHORIZATION_URL:String = "http://www.mendeley.com/oauth/authorize?oauth_token="

    def main(args: Array[String]) {

      MendeleyRWGClient.authorize
      MendeleyRWGClient.printAuthorizationInfo

      println(MendeleyRWGClient.executeCommand(new Collections()))



      //println(requestToken)


      // prepare configuration


      // connect to mendeley and select the publications
      
      // generate output

    }
  }
}
